package com.lab.webSocket.dto;

import com.lab.webSocket.model.UserEntity;

/**
 * Created by xu_jiaHui on 2017/8/26.
 */
public class UserDto {
    private Integer userId;
    private String userAccount;
    private String userPassword;
    private String userNickname;
    private Integer userSex;
    private Integer userAge;
    private String userIcon;
    private String userProfile;
    private String userRegistrationTime;
    private String userLastLogoutTime;
    private String groupList;
    private String chatWindows;
    private Integer userStatus;
    private Integer loginResult;

    public UserDto() {
    }

    public UserDto(Integer userId, String userAccount, String userNickname, Integer userSex, Integer userAge, String userIcon, String userProfile) {
        this.userId = userId;
        this.userAccount = userAccount;
        this.userNickname = userNickname;
        this.userSex = userSex;
        this.userAge = userAge;
        this.userIcon = userIcon;
        this.userProfile = userProfile;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserNickname() {
        return userNickname;
    }

    public void setUserNickname(String userNickname) {
        this.userNickname = userNickname;
    }

    public Integer getUserSex() {
        return userSex;
    }

    public void setUserSex(Integer userSex) {
        this.userSex = userSex;
    }

    public Integer getUserAge() {
        return userAge;
    }

    public void setUserAge(Integer userAge) {
        this.userAge = userAge;
    }

    public String getUserIcon() {
        return userIcon;
    }

    public void setUserIcon(String userIcon) {
        this.userIcon = userIcon;
    }

    public String getUserProfile() {
        return userProfile;
    }

    public void setUserProfile(String userProfile) {
        this.userProfile = userProfile;
    }

    public String getUserRegistrationTime() {
        return userRegistrationTime;
    }

    public void setUserRegistrationTime(String userRegistrationTime) {
        this.userRegistrationTime = userRegistrationTime;
    }

    public String getGroupList() {
        return groupList;
    }

    public void setGroupList(String groupList) {
        this.groupList = groupList;
    }

    public String getChatWindows() {
        return chatWindows;
    }

    public void setChatWindows(String chatWindows) {
        this.chatWindows = chatWindows;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public String getUserLastLogoutTime() {
        return userLastLogoutTime;
    }

    public void setUserLastLogoutTime(String userLastLogoutTime) {
        this.userLastLogoutTime = userLastLogoutTime;
    }

    public Integer getLoginResult() {
        return loginResult;
    }

    public void setLoginResult(Integer loginResult) {
        this.loginResult = loginResult;
    }

    public UserEntity toBean(){
        UserEntity userEntity=new UserEntity(userAccount, userPassword, userNickname, userSex, userAge, userIcon, userProfile, userRegistrationTime, userStatus);
        return userEntity;
    }


}
